<!DOCTYPE table PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
  <title>
	Prodiags Schedule Report
  </title>
  <link href="css/assetReg.css" rel="stylesheet" type="text/css">
  <link href="css/calendar.css" rel="stylesheet" type="text/css">
  <link href="css/style.css" type="text/css" rel="StyleSheet" >
  <script language="javascript" type="text/javascript" src="js/calendar.js"></script>
  <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
  <script type="text/javascript" src="js/jquery.tablesorter.min.js"></script> 
  <script type="text/javascript">
     function cal_processing(ele){
        displayCalendar(ele,'dd/mm/yyyy',ele);
      }
     function validateSearch(){
  	   if($('#type').val()==-1){
  		   alert("Please select a search type.");
  		   return false;
  	   }
     }
       $(function() { 
         $("#reportTable").tablesorter(); 
     }); 
   </script> 
</head>
<body>
<h2 align="center">ProDiags Schedule Report</h2>
<br/>
<div align="center" >
<br/>
 <table bgcolor="#000000" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody><tr><td>
	 <table border="0" cellpadding="1" cellspacing="1" width="100%">
    	<tbody><tr bgcolor="#FFFFFF">
<th class="PrdEnvTitle" colspan="11" align="center" bgcolor="#6875A3">Development: olc-app-dvl-02</th>
</tr>
<tr bgcolor="#FFFFFF">
<th class="stdSmallerHeader_white" colspan="11" align="center" bgcolor="#6875A3"> Device Name: LXBAY14ANET</th>
</tr>
<tr bgcolor="#FFFFFF">
<th class="stdSmallerHeader_white" colspan="11" align="center" bgcolor="#6875A3"> Asset Type: MR Magnet Monitor LCC_HM</th>
</tr>
<tr bgcolor="#FFFFFF" style="height:44px">
<th bgcolor="#FFFFFF" align="center" colspan="11" class="stdDarkBlueBold">
<form:form commandName="scheduleBean"  action="scheduleReport.htm" method="post" onsubmit="return validateSearch()">
<b> Search Type  :</b> 
<form:select path="type">
  <form:option value="-1">--Select--</form:option>
  <form:option value="requestId">Request Id</form:option>
</form:select>
<form:input path="requestId"></form:input>
<b>Date Range </b><form:input path="fromDate" onclick="cal_processing(this)"></form:input> <b>To</b>
<form:input path="toDate" onclick="cal_processing(this)"></form:input>
<input type="submit" value="Search" />
</form:form>
</th>
</tr>
<tr bgcolor="#FFFFFF">
<th class="stdDarkBlueBold" colspan="11" align="center" bgcolor="#C8CEE2"> Group: EUR</th>
</tr>
<tr bgcolor="#FFFFFF">
<td>
<table id="reportTable" class="tablesorter" border="1" cellspacing="1">
<thead>
  <tr  align="center" bgcolor="#dcdcdc">
      <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Request Id
      </th>    
      <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Year
      </th>
	    <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Month
      </th>
	    <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Date
      </th>
	    <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Hour
      </th>
	    <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Minute
      </th>
	    <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Second
      </th>
	   <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Time Zone
      </th>
      <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Updated By
      </th>
      <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Status
      </th>
      <th class="stdDarkBlueBold" colspan="1"  bgcolor="#C8CEE2">
        Comment
      </th>
  </tr>
 </thead> 
  <c:forEach items="${scheduleReport }" var="schedule">
    <tr  align="center" bgcolor="#dcdcdc">
      <td>
        ${schedule.requestId}
      </td>
        <td>
        ${schedule.updatedDate.year}
      </td>
       <td>
        ${schedule.updatedDate.month}
      </td>
       <td>
        ${schedule.updatedDate.date}
      </td>
        <td>
        ${schedule.updatedDate.hours}
      </td>
        <td>
        ${schedule.updatedDate.minutes}
      </td>
        <td>
        ${schedule.updatedDate.seconds}
      </td>
       <td>
        GMT
      </td>
      <td>
        ${schedule.updatedBy }
      </td>
      <td>
        ${schedule.status }
      </td>
	  <td>
        ${schedule.comment }
      </td>
    </tr>
     </c:forEach>
  </table>
  </td></tr></tbody></table>
  </div>
<div style="clear:both;"></div>
</body>
</html>
  

 